/*
	Author: Superxpdude

	Description:
	Removes any land vehicles within 10m of the player when called.

	Parameter(s):

		None


	Returns:
	NOTHING
*/

private ["_x","_y"];
	{	
	_x setVelocity [0,0,0];
	_x setPos [getPos _x select 0,getPos _x select 1,0];	
	
	for[{_y=0},{_y<(count (crew _x))},{_y=_y+1}] do
	{
		moveOut ((crew _x) select _y);
		((crew _x) select _y) setPos [getPos ((crew _x) select _y) select 0,(getPos ((crew _x) select _y) select 1) + 5,0];
	};
	_x setPos [0,0,0];
	_x setDamage 1;
	deletevehicle _x;
}forEach (nearestObjects [getPos Player, ["B_MRAP_01_F","B_MRAP_01_gmg_F","B_MRAP_01_hmg_F","B_Quadbike_01_F","B_Quadbike_01_F","B_Truck_01_transport_F","B_Truck_01_mover_F","B_Truck_01_transport_F","B_G_Offroad_01_armed_F","B_G_Offroad_01_F","B_APC_Tracked_01_base_F","B_APC_Wheeled_01_base_F","B_MBT_01_arty_base_F","B_MBT_01_base_F","B_MBT_01_mlrs_base_F","Tank","Ship","Motorcycle","Animals"], 10]);